/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sandbox.org.wads.elements;

import org.enhydra.shark.xpdl.XMLComplexElement;

/**
 *
 * @author Nattasan W.
 */
public class RequestDetails extends XMLComplexElement {
  
  public RequestDetails(Wads wads) {
    super(wads, true);
  }

  @Override
  protected void fillStructure() {
    Archetype refArchetype = new Archetype(this);
    CurrentActivity refCurrentActivity = new CurrentActivity(this);
    DataFields refDataFields = new DataFields(this);
    
    add(refArchetype);
    add(refCurrentActivity);
    add(refDataFields);
  }
  
  public Archetype getArchetype() {
    return (Archetype)get("Archetype");
  }
  
  public DataFields getDataFields() {
    return (DataFields)get("DataFields");
  }
  
  public String getCurrentActivity() {
    return get("CurrentActivity").toValue();
  }

}
